
<script type="text/javascript" charset="utf-8">
	function fittings_to_flow(goodsId,parentId)
	{
		var goods        = new Object();
		var spec_arr     = new Array();
		var number       = 1;
		goods.spec     = spec_arr;
		goods.goods_id = goodsId;
		goods.number   = number;
		goods.parent   = parentId;
		//Ajax.call('flow.php?step=add_to_cart', 'goods=' + goods.toJSONString(), fittings_to_flow_response, 'POST', 'JSON');
	}
	function fittings_to_flow_response(result)
	{
		if (result.error > 0)
		{
			// 如果需要缺货登记，跳转
			if (result.error == 2)
			{
				if (confirm(result.message))
				{
				  location.href = 'user.php?act=add_booking&id=' + result.goods_id;
				}
			}
			else if (result.error == 6)
			{
				openSpeDiv(result.message, result.goods_id, result.parent);
			}
			else
			{
				alert(result.message);
			}
		}
		else
		{
			location.href = 'flow.php';
		}
	}
</script>
<!--
<div class="block" >
	<div class="flowBox">
		<h6>
			<span>{$lang.goods_fittings}</span>
		</h6>
		<form action="flow.php" method="post">
			<div class="flowGoodsFittings clearfix">
				<volist name="fittings_list" id="fittings">
					<ul class="clearfix">
						<li class="goodsimg">
							<a href="{$fittings.url}" target="_blank">
								<img src="{$fittings.goods_thumb}" alt="{$fittings.name}" class="B_blue" />
							</a>
						</li>
						<li>
							<a href="{$fittings.url}" target="_blank" title="{$fittings.goods_name}" class="f6">{$fittings.short_name}</a><br />
							{$lang.fittings_price}
							<font class="f1">{$fittings.fittings_price}</font><br/>
							{$lang.parent_name}{$fittings.parent_short_name}<br/>
							<a href="javascript:fittings_to_flow({$fittings.goods_id},{$fittings.parent_id})">
								<img src="__THEMES__/images/bnt_buy.gif" alt="{$lang.collect_to_flow}" />
							</a>
						</li>
					</ul>
				</volist>
			</div>
		</form>
	</div>
</div>
<div class="blank5"></div>
-->